.. _CAIAction Class: ========================== CAIAction Class ========================== .. toctree:: :maxdepth: 1 * :ref:`Overview` * :ref:`Quick Reference` * :ref:`Constructors` * :ref:`Methods` ---- .. _CAIAction_Overview: Overview --------------- .. note:: The **CAIAction** class handles AI processing of creature actions The structure used for this class is :ref:`CAIAction` ---- .. _CAIAction_QuickRef: Quick Reference --------------- +---------------------------------------------------------------------------------------------+ | **Quick Ref** | +---------------------------------------------------------------------------------------------+ | void **CAIAction\:\:CAIAction**\() | +---------------------------------------------------------------------------------------------+ | void **CAIAction\:\:~CAIAction**\() | +---------------------------------------------------------------------------------------------+ | void **CAIAction\:\:Decode**\(:ref:`CGameAIBase`\* caller) | +---------------------------------------------------------------------------------------------+ | unsigned char **CAIAction\:\:OfType**\(short type) | +---------------------------------------------------------------------------------------------+ | void **CAIAction\:\:Read**\(:ref:`CString` data, :ref:`CString` source) | +---------------------------------------------------------------------------------------------+ ---- .. _CAIAction_Constructors: Constructors --------------- +----------------------------------------------------------+------------------------------------------------------+ | **Name** | **Description** | +----------------------------------------------------------+------------------------------------------------------+ | :ref:`CAIAction\:\:CAIAction` | Constructs a ``CAIAction`` object | +----------------------------------------------------------+------------------------------------------------------+ | :ref:`CAIAction\:\:~CAIAction` | Destroys a ``CAIAction`` object | +----------------------------------------------------------+------------------------------------------------------+ .. _CAIActionCAIAction: CAIAction\:\:CAIAction ^^^^^^^^^^^^^^^^^^^^^^ Constructs a ``CAIAction`` object :: void CAIAction(); **Remarks** Constructs a ``CAIAction`` object ---- .. _CAIAction~CAIAction: CAIAction\:\:~CAIAction ^^^^^^^^^^^^^^^^^^^^^^^ Destroys the ``CAIAction`` object :: void ~CAIAction(); **Remarks** Destroys the ``CAIAction`` object ---- .. _CAIAction_Methods: Methods --------------- +----------------------------------------------------------+-----------------------------------------------------------------------------------------+ | **Name** | **Description** | +----------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIAction\:\:Decode` | Decodes | +----------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIAction\:\:OfType` | | +----------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIAction\:\:Read` | Reads | +----------------------------------------------------------+-----------------------------------------------------------------------------------------+ ---- .. _CAIActionDecode: CAIAction\:\:Decode ^^^^^^^^^^^^^^^^^^^ Decode action :: void CAIAction::Decode(CGameAIBase* caller); **Parameters** * :ref:`CGameAIBase`\* *caller* - pointer to the CGameAIBase caller **Remarks** Decodes action ---- .. _CAIActionOfType: CAIAction\:\:OfType ^^^^^^^^^^^^^^^^^^^ OfType :: unsigned char CAIAction::OfType(short type); **Parameters** * ``short`` *type* - the type to get **Return Value** Returns as an ``unsigned char`` **Remarks** ---- .. _CAIActionRead: CAIAction\:\:Read ^^^^^^^^^^^^^^^^^ Reads the action :: void CAIAction::Read(CString data, CString source); **Parameters** * :ref:`CString` *data* - action data to read * :ref:`CString` *source* - source of action **Remarks**